//
//  FSTableViewGroupItem.m
//  fanshu
//
//  Created by jklin on 16/3/27.
//  Copyright © 2016年 FS. All rights reserved.
//

#import "FSTableViewGroupItem.h"

@implementation FSTableViewGroupItem
-(NSArray *)rowArray{
    if (_rowArray == nil) {
        _rowArray = [[NSArray alloc]init];
    }
    return _rowArray;
}

+(instancetype)tableViewGroupItemWithRowArray:(NSArray *)array headTitle:(NSString *)headTitle footTitle:(NSString *)footTitle{
    FSTableViewGroupItem *groupItem = [[FSTableViewGroupItem alloc]init];
    groupItem.rowArray = array;
    groupItem.headTitle = headTitle;
    groupItem.footTitle = footTitle;
    return groupItem;
}

-(instancetype)initWithRowArray:(NSArray *)array headTitle:(NSString *)headTitle footTitle:(NSString *)footTitle{
    self = [super init];
    self.rowArray = array;
    self.footTitle = footTitle;
    return self;
}
@end
